<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../share/taglib.jsp" %>
<html>
<head>
<title>楼盘选择</title>
<base target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
<script language="JavaScript">
//到指定的分页页面
function topage(page){
	var form = document.forms[0];
	form.page.value = page;
	form.submit();
}

function selectBuilding(buildingId, buildingName) {
	var tmpValue = new Array(buildingId, buildingName);
	window.returnValue = tmpValue;
	window.close();
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" marginwidth="0" marginheight="0">
<html:form action="/cms/house/building.do" method="post">
<html:hidden property="page"/>
<html:hidden property="query" value="true"/>
<html:hidden property="method" value="selectBuildingUI"/>
  <table width="98%" border="0" cellspacing="1" cellpadding="2" align="center">
	<tr>
  		<td colspan="4" height="5"></td>
  	</tr>
  	<tr>
  		<td width="18%">房源标题:</td>
  		<td width="32%"><html:text property="name"/></td>
  		<td width="18%"><bean:message key="info.building.field.status"/>:</td>
  		<td width="32%">
  		<html:select property="status">
	      <html:option value="">-</html:option>
	      <html:option value="nonePublish"><bean:message key="info.building.status.nonePublish"/></html:option>
	      <html:option value="published"><bean:message key="info.building.status.published"/></html:option>
	      <html:option value="invalidate"><bean:message key="info.building.status.invalidate"/></html:option>
	    </html:select>
  		</td>
  	</tr>
  	<tr>
  		<td colspan="4" height="5"></td>
  	</tr>
  	<tr>
  		<td colspan="2" width="50%" align="right"><button type="button" onclick="document.forms[0].submit();">查询</button></button></td>
  		<td colspan="2" width="50%">&nbsp;</td>
  	</tr>
  	<tr>
  		<td colspan="4" height="5"></td>
  	</tr>
    <tr><td colspan="4" bgcolor="#ffbe26" align="right">
    	<%@ include file="../share/fenye.jsp" %>
	</td></tr>
    <tr>
      <td width="10%" bgcolor="#ffbe26"> <div align="center"><font color="#000000">代号</font></div></td>
      <td width="40%" bgcolor="#ffbe26"> <div align="center"><font color="#000000">楼盘名称</font></div></td>
      <td width="15%" bgcolor="#ffbe26"> <div align="center"><font color="#000000">物业类型</font></div></td>
      <td width="15%" bgcolor="#ffbe26"> <div align="center"><font color="#000000">状态</font></div></td>
    </tr>
<!---------------------------LOOP START------------------------------>
<c:forEach items="${pageView.records}" var="entry">
    <tr>
      <td bgcolor="f5f5f5"><div align="center">${entry.buildingId}</div></td>
      <td bgcolor="f5f5f5"><div align="center"><a href="javascript:selectBuilding(${entry.buildingId}, '${entry.name}');">${entry.name}</a></div></td>
      <td bgcolor="f5f5f5"><div align="center">${entry.propertyType == null ? '-' : entry.propertyType.name}</div></td>
      <td bgcolor="f5f5f5"><div align="center"><bean:message key="info.building.status.${entry.status}"/></div></td>
	</tr>
</c:forEach>
<!----------------------LOOP END------------------------------->
  </table>
</html:form>
</body>
</html>